package com.train.trainmanage.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.train.trainmanage.mapper.RelationDirectionModelMapper;
import com.train.trainmanage.model.RelationDirectionModel;
import com.train.trainmanage.service.RelationDirectionService;

@Service
public class RelationDirectionServiceImpl implements RelationDirectionService{
	
	@Autowired
	private RelationDirectionModelMapper relaDireMapper;

	@Override
	public RelationDirectionModel getByMap(Map<String, Object> map) {
		RelationDirectionModel relationDirection = relaDireMapper.selectByMap(map);
		return relationDirection;
	}

	@Override
	public List<Integer> listGoIdByComeId(Integer comeId) {
		List<Integer> goIdList = relaDireMapper.listGoIdByComeId(comeId);
		return goIdList;
	}

}
